home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / UFakeNntp.h < prev    next >
Encoding:
Text File  |  1994-02-20  |  1023 b   |  43 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // UFakeNntp.h
  3.  
  4. #define __UFAKENNTP__
  5.  
  6. #ifndef __UNNTP__
  7. #include "UNntp.h"
  8. #endif
  9.  
  10. class PFakeNntp : public PNntp 
  11. {
  12.     public:
  13.         // NOTE: The caller owns the returned handle
  14.         Handle GetListOfAllGroups();
  15.         Handle GetListOfNewGroups(unsigned long fromDate); // = 0
  16.         
  17.         // NOTE: The caller owns the returned handle
  18.         Handle GetListOfGroupDesciptions();
  19.         
  20.         // NOTE: The caller owns the returned handle
  21.         Handle GetHeaderList(const char *headerName, long firstArticleID, long lastArticleID);
  22.         
  23.         // NOTE: The caller owns the returned handle
  24.         Handle GetArticle(long articleID);
  25.         
  26.         // Note: The caller owns the handle
  27.         virtual void PostArticle(Handle h, short ackStringID);
  28.  
  29.         Boolean IsPostingAllowed();
  30.         
  31.         void ExamineNewsServer();
  32.  
  33.         PFakeNntp();
  34.         void IFakeNntp();
  35.         ~PFakeNntp();
  36.     protected:
  37.         long fRealFirstArticleID, fRealLastArticleID;
  38.         CStr63 fPath;
  39.  
  40.         void DoSetGroup(const CStr255 &name);
  41.         Handle ReadFile(const CStr255 &name);
  42. };
  43.